Hi Gregg,
A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
Are you doing this? What kind of encoders do you have? Please include specifications. How is it wired exactly?
Regards, TK
Group: DynoMotion |
Message: 6895 |
From: funncarsmi |
Date: 3/7/2013 |
Subject: Re: Encoder Problem Returned |
They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
X axis:
pin 1 =A+
pin 2 =A-
pin 3 =B+
pin 4 =B-
Y axis:
pin 5 =A+
pin 6 =A-
pin 7 =B+
pin 8 =B-
Z axis:
pin 9 =A+
pin 10 =A-
pin 11 =B+
pin 12 =B-
4th axis:
pin 13 =A+
pin 14 =A-
pin 15 =B+
pin 16 =B-
The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
-Gregg
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Gregg,
>
> A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
>
> Are you doing this? What kind of encoders do you have? Please include specifications. How is it wired exactly?Â
>
> Regards,
> TK
>
>
>
> ________________________________
> From: funncarsmi <funncars@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, March 6, 2013 9:21 PM
> Subject: [DynoMotion] Encoder Problem Returned
>
>
> Â
> Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
>
> This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
>
> Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
>
> Gregg
>
|
|
Group: DynoMotion |
Message: 6896 |
From: funncarsmi |
Date: 3/7/2013 |
Subject: Re: Encoder Problem Returned |
Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
--- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@...> wrote:
>
> They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> X axis:
> pin 1 =A+
> pin 2 =A-
> pin 3 =B+
> pin 4 =B-
>
> Y axis:
> pin 5 =A+
> pin 6 =A-
> pin 7 =B+
> pin 8 =B-
>
> Z axis:
> pin 9 =A+
> pin 10 =A-
> pin 11 =B+
> pin 12 =B-
>
> 4th axis:
> pin 13 =A+
> pin 14 =A-
> pin 15 =B+
> pin 16 =B-
>
> The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
>
> -Gregg
>
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Gregg,
> >
> > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> >
> > Are you doing this? What kind of encoders do you have? Please include specifications. How is it wired exactly?Â
> >
> > Regards,
> > TK
> >
> >
> >
> > ________________________________
> > From: funncarsmi <funncars@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, March 6, 2013 9:21 PM
> > Subject: [DynoMotion] Encoder Problem Returned
> >
> >
> > Â
> > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> >
> > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> >
> > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> >
> > Gregg
> >
>
|
|
Group: DynoMotion |
Message: 6897 |
From: Tom Kerekes |
Date: 3/7/2013 |
Subject: Re: Encoder Problem Returned |
Hi Gregg,
Is there +5V supplied to the encoders?
Is there a ground connection between the encoders and Kanalog?
You still didn't include a specification on the encoders. Maybe they are open collector and they need pull up resistors?
Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground. All four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V. Also whenever one signal is high the complementary signal should be low and vice-versa.
Also check the 26 pin ribbon cable between KFLOP and
Kanalog. Check if it is somehow mangled or not fully plugged in.
I don't know of anyone ever damaging the differential inputs. They are pretty well protected.
Another possibility is a wrong software configuration. Those encoder signals come in KFLOP IO 0-7. If something is configuring those as outputs, that would be
a problem.
I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
If you would like to send us the board for testing send it with RMA#17.
Regards TK
Group: DynoMotion |
Message: 6948 |
From: funncarsmi |
Date: 3/11/2013 |
Subject: Re: Encoder Problem Returned |
I don't mind you asking basic questions, we all overlook the simple things sometimes. I have a lot of simple questions that I can't find the answers to in the documentation. I am very good with mechanical items, and I have two different friends helping me - one has 10+ years of experience working on robots (for robot mfg), and the other very good with electronics and writing software. All 3 of us have been struggling with this ...we take 3 steps forward and 2 back. I am using ver 4.29.
The encoders are Dynamic Research DRC-153 incremental encoder. They are outputting a nice 2volt square wave on A, A- ; and on B, B-. There appears to be a good ground on the encoders and the board is grounded. Yes the encoders are all getting power and they are all outputting a 2V square wave signal. There is about .1V of noise on the 5V line, I will try to minimize this on Tuesday when I work on the mill.
I have come to the conclusion it is not the encoder or the board hardware, but probably software settings and possibly noise. There are numerous software things going on that I don't find documentation for so there will a list of questions.
1) In the Configuration screen: How many times should you be able to change a setting and be able to download it to the board before needing to reboot the kflop board? Sometimes is it 2 or 3, other times we are limited to once per channel. It makes no sense that this should change from one reboot to another reboot, but when you hit that random limit you can enter anything, download it to kflop, and it will not take place until the Kflop system is disconnected from USB and hard booted. I would expect it should be unlimited, but that is clearly not the case.
2) In the Configuration screen: When do you use input channel offset to stop drift vs output channel offset to stop drift? And if the offset is designed for some other reason
when to use it each of these offset settings.
3) The KFLOP Digital I/O is totally confusing to me. On reboot the digital I/O shows output boxes 8 (home 0), 9 (home 1), 10 (home 2), 12 (Lim+0), 13 (Lim -0), 15 (Lim -1) are checked. The voltage out of JP11 is measured using a volt meter with values of ch0 =.01V; ch1 =.01V; ch2 =-.03V.
But if I uncheck the digital I/O output "home" boxes (8, 9, 10) ...then the voltage at JP11 jumps from .01V to .31V. What do those ports have to do with voltage coming out of JP11? And why are they always set as outputs at boot up? I don't see anything in my "launch on power up thread" that is commanding these.
4) The Kanalog Analog I/O screen is another area where I don't understand what is going on. On the left we see ADC's (from where??))and they are numbered 0-7; on the right are DAC's that I would expect to be numbered 0-7 ...but they are all numbered "0". Why? One time upon reboot the second value down was labeled #16, but all the others were "0". The voltage always says 0.00 volts on all the displays ...even when we can measure voltage at each pin of JP11 pins. I know there are muxed from kanalog ...but from which pins to to which pins?
5) All the encoders seemed to count properly for 3 hours, then after one of the hard reboots of the board, the Z axis started counting up very quickly even though the shaft had no motion ...yet the encoder is still putting out the same nice square wave. (last week it was the X axis that was doing this.) I don't understand why one axis would do this and not all 3 if it is noise on the power line ...especially since they are all connected to the same power line.
6) Your video describing uploads downloads save load and clipboard talks about the init.c file
.Where is the init.c file stored? Windows can't find any file with that name on my hard drive,
I'm sure I will move forward 3 steps and back on resulting in answers, but also more questions, after I work on the mill on Tuesday.
Thanks,
Gregg
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Gregg,
>
> Is there +5V supplied to the encoders?Â
>
>
> Is there a ground connection between the encoders and Kanalog?
>
>
> You still didn't include a specification on the encoders. Maybe they are open collector and they need pull up resistors?
>
>
> Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground. All four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V. Also whenever one signal is high the complementary signal should be low and vice-versa.
>
> Also check the 26 pin ribbon cable between KFLOP and Kanalog. Check if it is somehow mangled or not fully plugged in.
>
> I don't know of anyone ever damaging the differential inputs. They are pretty well protected.
>
> Another possibility is a wrong software configuration. Those encoder signals come in KFLOP IO 0-7. If something is configuring those as outputs, that would be a problem.
>
>
> I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
>
> If you would like to send us the board for testing send it with RMA#17.
>
> Regards
> TK
>
> Â
>
>
>
>
>
> ________________________________
> From: funncarsmi <funncars@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, March 7, 2013 2:04 PM
> Subject: [DynoMotion] Re: Encoder Problem Returned
>
>
> Â
>
> Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
>
> http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
>
> --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> >
> > They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> > X axis:
> > pin 1 =A+
> > pin 2 =A-
> > pin 3 =B+
> > pin 4 =B-
> >
> > Y axis:
> > pin 5 =A+
> > pin 6 =A-
> > pin 7 =B+
> > pin 8 =B-
> >
> > Z axis:
> > pin 9 =A+
> > pin 10 =A-
> > pin 11 =B+
> > pin 12 =B-
> >
> > 4th axis:
> > pin 13 =A+
> > pin 14 =A-
> > pin 15 =B+
> > pin 16 =B-
> >
> > The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> > Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
> >
> > -Gregg
> >
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Gregg,
> > >
> > > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> > >
> > > Are you doing this?ÃÂ What kind of encoders do you have?ÃÂ Please include specifications.ÃÂ How is it wired exactly?ÃÂ
> > >
> > > Regards,
> > > TK
> > >
> > >
> > >
> > > ________________________________
> > > From: funncarsmi <funncars@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, March 6, 2013 9:21 PM
> > > Subject: [DynoMotion] Encoder Problem Returned
> > >
> > >
> > > ÃÂ
> > > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> > >
> > > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> > >
> > > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> > >
> > > Gregg
> > >
> >
>
|
|
Group: DynoMotion |
Message: 6949 |
From: Tom Kerekes |
Date: 3/11/2013 |
Subject: Re: Encoder Problem Returned |
Hi Gregg, You still didn't include a specification link for your encoders. Before I believe you had different problems. What did you change? 2V seems a little low but should work fine. Where are you scoping? at the Kanalog end or encoder end? Is the encoder wiring shielded? I'm not sure what you mean by "the board is grounded". Possibly not a good idea if you are referring to earth ground. Regarding: #1 it is unlimited #2 Use Output Offset. Input Offset is used for ADC input offset (resolvers) #3 When using Kanalog JP7 is basically totally consumed by the Kanalog Communication you shouldn't worry about it. KFLOP auto detects Kanalog and uses JP7 for all the IO. There are over 200 bits of IO transferred back and forth between KFLOP and
Kanalog every 90us Servo Sample. If you change the IO on JP7 you will corrupt the communication to Kanalog and strange things will happen. Never change or use any of the IO on JP7 when using a Kanalog. .03V is within the tolerance of 0V for Kanalogs 20V output range. #4 Your description of the Kanalog Analog I/O Screen seems correct. Kanalog has 8 ADC inputs (JP6) and 8 DAC outputs (JP11). They are numbered 0 through 7 as shown on the left of the screen. The row numbers apply to both the ADC and DACS. The ADCs and DACs are both displayed in counts and Volts. Unders the DACs column 0 = 0.000V means that DAC is set to 0 counts which is 0V #5 I don't understand this. But sometimes encoders are more easily influenced by noise when they are positioned right at the edge of a transition. #6 It is up to you to create your own init.c C program that applies to your system. Give it
any name you wish and then configure Mach3 or KMotionCNC to use it to initialize the system. You can create it by starting with one of the examples and changing/pasting your parameters into it. See Step 4 here (the process is the same whether or not you are using Mach3): http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm HTH Regards TK
Group: DynoMotion |
Message: 6952 |
From: az9633@ymail.com |
Date: 3/11/2013 |
Subject: Re: Encoder Problem Returned |
Ton, Gregg:
I saw this post and thought I'd send Tom an email with the encoder specs. DRC is no longer making encoders and the specs may be difficult to find. Hope it helps.
My two cents worth. It smells like there is some noise problem possibly caused by grounding loops or noise pickup via grounds in Greggs system. I've seen some of these encoders have the shields tied to the encoder case.
AZ
--- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@...> wrote:
>
> I don't mind you asking basic questions, we all overlook the simple things sometimes. I have a lot of simple questions that I can't find the answers to in the documentation. I am very good with mechanical items, and I have two different friends helping me - one has 10+ years of experience working on robots (for robot mfg), and the other very good with electronics and writing software. All 3 of us have been struggling with this ...we take 3 steps forward and 2 back. I am using ver 4.29.
>
> The encoders are Dynamic Research DRC-153 incremental encoder. They are outputting a nice 2volt square wave on A, A- ; and on B, B-. There appears to be a good ground on the encoders and the board is grounded. Yes the encoders are all getting power and they are all outputting a 2V square wave signal. There is about .1V of noise on the 5V line, I will try to minimize this on Tuesday when I work on the mill.
>
> I have come to the conclusion it is not the encoder or the board hardware, but probably software settings and possibly noise. There are numerous software things going on that I don't find documentation for so there will a list of questions.
>
>
> 1) In the Configuration screen: How many times should you be able to change a setting and be able to download it to the board before needing to reboot the kflop board? Sometimes is it 2 or 3, other times we are limited to once per channel. It makes no sense that this should change from one reboot to another reboot, but when you hit that random limit you can enter anything, download it to kflop, and it will not take place until the Kflop system is disconnected from USB and hard booted. I would expect it should be unlimited, but that is clearly not the case.
>
> 2) In the Configuration screen: When do you use input channel offset to stop drift vs output channel offset to stop drift? And if the offset is designed for some other reason
when to use it each of these offset settings.
>
> 3) The KFLOP Digital I/O is totally confusing to me. On reboot the digital I/O shows output boxes 8 (home 0), 9 (home 1), 10 (home 2), 12 (Lim+0), 13 (Lim -0), 15 (Lim -1) are checked. The voltage out of JP11 is measured using a volt meter with values of ch0 =.01V; ch1 =.01V; ch2 =-.03V.
> But if I uncheck the digital I/O output "home" boxes (8, 9, 10) ...then the voltage at JP11 jumps from .01V to .31V. What do those ports have to do with voltage coming out of JP11? And why are they always set as outputs at boot up? I don't see anything in my "launch on power up thread" that is commanding these.
>
> 4) The Kanalog Analog I/O screen is another area where I don't understand what is going on. On the left we see ADC's (from where??))and they are numbered 0-7; on the right are DAC's that I would expect to be numbered 0-7 ...but they are all numbered "0". Why? One time upon reboot the second value down was labeled #16, but all the others were "0". The voltage always says 0.00 volts on all the displays ...even when we can measure voltage at each pin of JP11 pins. I know there are muxed from kanalog ...but from which pins to to which pins?
>
> 5) All the encoders seemed to count properly for 3 hours, then after one of the hard reboots of the board, the Z axis started counting up very quickly even though the shaft had no motion ...yet the encoder is still putting out the same nice square wave. (last week it was the X axis that was doing this.) I don't understand why one axis would do this and not all 3 if it is noise on the power line ...especially since they are all connected to the same power line.
>
> 6) Your video describing uploads downloads save load and clipboard talks about the init.c file
.Where is the init.c file stored? Windows can't find any file with that name on my hard drive,
>
> I'm sure I will move forward 3 steps and back on resulting in answers, but also more questions, after I work on the mill on Tuesday.
>
> Thanks,
> Gregg
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Gregg,
> >
> > Is there +5V supplied to the encoders?Â
> >
> >
> > Is there a ground connection between the encoders and Kanalog?
> >
> >
> > You still didn't include a specification on the encoders. Maybe they are open collector and they need pull up resistors?
> >
> >
> > Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground. All four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V. Also whenever one signal is high the complementary signal should be low and vice-versa.
> >
> > Also check the 26 pin ribbon cable between KFLOP and Kanalog. Check if it is somehow mangled or not fully plugged in.
> >
> > I don't know of anyone ever damaging the differential inputs. They are pretty well protected.
> >
> > Another possibility is a wrong software configuration. Those encoder signals come in KFLOP IO 0-7. If something is configuring those as outputs, that would be a problem.
> >
> >
> > I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
> >
> > If you would like to send us the board for testing send it with RMA#17.
> >
> > Regards
> > TK
> >
> > Â
> >
> >
> >
> >
> >
> > ________________________________
> > From: funncarsmi <funncars@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, March 7, 2013 2:04 PM
> > Subject: [DynoMotion] Re: Encoder Problem Returned
> >
> >
> > Â
> >
> > Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
> >
> > --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> > >
> > > They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> > > X axis:
> > > pin 1 =A+
> > > pin 2 =A-
> > > pin 3 =B+
> > > pin 4 =B-
> > >
> > > Y axis:
> > > pin 5 =A+
> > > pin 6 =A-
> > > pin 7 =B+
> > > pin 8 =B-
> > >
> > > Z axis:
> > > pin 9 =A+
> > > pin 10 =A-
> > > pin 11 =B+
> > > pin 12 =B-
> > >
> > > 4th axis:
> > > pin 13 =A+
> > > pin 14 =A-
> > > pin 15 =B+
> > > pin 16 =B-
> > >
> > > The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> > > Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
> > >
> > > -Gregg
> > >
> > >
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Gregg,
> > > >
> > > > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> > > >
> > > > Are you doing this?ÃÂ What kind of encoders do you have?ÃÂ Please include specifications.ÃÂ How is it wired exactly?ÃÂ
> > > >
> > > > Regards,
> > > > TK
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: funncarsmi <funncars@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, March 6, 2013 9:21 PM
> > > > Subject: [DynoMotion] Encoder Problem Returned
> > > >
> > > >
> > > > ÃÂ
> > > > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> > > >
> > > > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> > > >
> > > > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> > > >
> > > > Gregg
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 6954 |
From: funncarsmi |
Date: 3/11/2013 |
Subject: Re: Encoder Problem Returned |
Answers embedded in your reply below: ****
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
Hi Gregg,
You still didn't include a specification link for your encoders.
***Encoder spec sheet is in Files\Tree 320 3-axis mill\DRC-152 encoder spec.
Before I believe you had different problems. What did you change?
***From last week? I rebooted the system, no other changes. That is one of the things that is making this so hard. Even last night from one reboot to the next it seemed to boot differently. i.e even though the system would boot all the data, I would still need to download the configuration for each axis and then the drives would be enabled ...even though the enable box is checked in the axis screen. checking or unchecking the enable box would not do anything until after I downloaded the configuration for that channel ...even though I have not changed anything on the configuration screen!
*** I did upgrade from 4.23 to 4.29 and finalized wire connections so they were not a rats nest over the past 2 months.
2V seems a little low but should work fine. Where are you scoping? at the Kanalog end or encoder end?
*** scope is connected directly at the kanalog input. checking the encoder output both when it is not connected and when connected to kanalog.
Is the encoder wiring shielded?
***Yes. this was factory done by Tree in the 1980's. The connections look original and show no resistance.
I'm not sure what you mean by "the board is grounded". Possibly not a good idea if you are referring to earth ground.
*** I ran the board without a ground and now with a ground wire. Yes, from the ground location on the board to the earth ground. I can easily remove it. It doesn't seem to have any effect on anything.
Regarding:
#1 it is unlimited
*** That is how I remember my kMotion ver 4.23 working, but THAT IS NOT HOW MY v. 4.29 software IS RESPONDING NOW!
#2 Use Output Offset. Input Offset is used for ADC input offset (resolvers).
*** OK, I was using the input offset with incremental quadrature encoders. I will change that and only use the output now.
#3 When using Kanalog JP7 is basically totally consumed by the Kanalog Communication you shouldn't worry about it. KFLOP auto detects Kanalog and uses JP7 for all the IO. There are over 200 bits of IO transferred back and forth between KFLOP and Kanalog every 90us Servo Sample. If you change the IO on JP7 you will corrupt the communication to Kanalog and strange things will happen. Never change or use any of the IO on JP7 when using a Kanalog. .03V is within the tolerance of 0V for Kanalogs 20V output range.
*** OK. That helps! And yes strange things were happening! I thought the signal was JP1 , JP2, & JP9 signals were muxed to Kflop and I needed to set them on the Kflop digital IO settings ...especially after you said make sure the ports are set to input and nothing else is using them. I won't touch kflop output bits 0-16 or 36-43. Will they the system "just know" JP2 has encoder index info coming in?
#4 Your description of the Kanalog Analog I/O Screen seems correct. Kanalog has 8 ADC inputs (JP6) and 8 DAC outputs (JP11). They are numbered 0 through 7 as shown on the left of the screen. The row numbers apply to both the ADC and DACS. The ADCs and DACs are both displayed in counts and Volts. Unders the DACs column 0 = 0.000V means that DAC is set to 0 counts which is 0V.
*** OK, that helps a lot and makes sense. again a misunderstanding we didn't realize that was counts and voltage on the right, we were reading it as pins and volts.
#5 I don't understand this. But sometimes encoders are more easily influenced by noise when they are positioned right at the edge of a transition.
#6 It is up to you to create your own init.c C program that applies to your system. Give it any name you wish and then configure Mach3 or KMotionCNC to use it to initialize the system. You can create it by starting with one of the examples and changing/pasting your parameters into it. See Step 4 here (the process is the same whether or not you are using Mach3):
http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
*** I edited and was using the "launch thread on power up" on the configuration screen. I was expecting to find a file named "init.c" and I don't have one.
This brings me to a new question: How do I know what c programs are being launched? Clearly something is launched even if I do not check any of the 1-7 threads on the "launch on power up" menu in configuration.
In a email I read from the archives you wrote (I think to Bengt)
"Step #1 (Check Amplifier)
With the axis disabled, write values to the DAC using the Console Screen.
The range of DAC values is +/-2047 counts which correspond to +/-10V.
USE SMALL numbers
ie. 100 or 200, DAC0=100 DAC0=-200 DAC0=0
The amplifier should be configured to control Velocity."
**** Do you mean in the step response screen plot velocity, output vs time, secs? Clearly the DAC0=100 is a console command. Does that mean you want me to just use the console and make the axis move? How (where) do I "control velocity"?
****Gregg
HTH
Regards
TK
___________________________________________________________
___________________________________________________________
________________________________
> From: funncarsmi <funncars@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, March 11, 2013 2:45 AM
> Subject: [DynoMotion] Re: Encoder Problem Returned
>
>
> Â
> I don't mind you asking basic questions, we all overlook the simple things sometimes. I have a lot of simple questions that I can't find the answers to in the documentation. I am very good with mechanical items, and I have two different friends helping me - one has 10+ years of experience working on robots (for robot mfg), and the other very good with electronics and writing software. All 3 of us have been struggling with this ...we take 3 steps forward and 2 back. I am using ver 4.29.
>
> The encoders are Dynamic Research DRC-153 incremental encoder. They are outputting a nice 2volt square wave on A, A- ; and on B, B-. There appears to be a good ground on the encoders and the board is grounded. Yes the encoders are all getting power and they are all outputting a 2V square wave signal. There is about .1V of noise on the 5V line, I will try to minimize this on Tuesday when I work on the mill.
>
> I have come to the conclusion it is not the encoder or the board hardware, but probably software settings and possibly noise. There are numerous software things going on that I don't find documentation for so there will a list of questions.
>
> 1) In the Configuration screen: How many times should you be able to change a setting and be able to download it to the board before needing to reboot the kflop board? Sometimes is it 2 or 3, other times we are limited to once per channel. It makes no sense that this should change from one reboot to another reboot, but when you hit that random limit you can enter anything, download it to kflop, and it will not take place until the Kflop system is disconnected from USB and hard booted. I would expect it should be unlimited, but that is clearly not the case.
>
> 2) In the Configuration screen: When do you use input channel offset to stop drift vs output channel offset to stop drift? And if the offset is designed for some other reason â¦when to use it each of these offset settings.
>
> 3) The KFLOP Digital I/O is totally confusing to me. On reboot the digital I/O shows output boxes 8 (home 0), 9 (home 1), 10 (home 2), 12 (Lim+0), 13 (Lim -0), 15 (Lim -1) are checked. The voltage out of JP11 is measured using a volt meter with values of ch0 =.01V; ch1 =.01V; ch2 =-.03V.
> But if I uncheck the digital I/O output "home" boxes (8, 9, 10) ...then the voltage at JP11 jumps from .01V to .31V. What do those ports have to do with voltage coming out of JP11? And why are they always set as outputs at boot up? I don't see anything in my "launch on power up thread" that is commanding these.
>
> 4) The Kanalog Analog I/O screen is another area where I don't understand what is going on. On the left we see ADC's (from where??))and they are numbered 0-7; on the right are DAC's that I would expect to be numbered 0-7 ...but they are all numbered "0". Why? One time upon reboot the second value down was labeled #16, but all the others were "0". The voltage always says 0.00 volts on all the displays ...even when we can measure voltage at each pin of JP11 pins. I know there are muxed from kanalog ...but from which pins to to which pins?
>
> 5) All the encoders seemed to count properly for 3 hours, then after one of the hard reboots of the board, the Z axis started counting up very quickly even though the shaft had no motion ...yet the encoder is still putting out the same nice square wave. (last week it was the X axis that was doing this.) I don't understand why one axis would do this and not all 3 if it is noise on the power line ...especially since they are all connected to the same power line.
>
> 6) Your video describing uploads downloads save load and clipboard talks about the init.c file â¦.Where is the init.c file stored? Windows can't find any file with that name on my hard drive,
>
> I'm sure I will move forward 3 steps and back on resulting in answers, but also more questions, after I work on the mill on Tuesday.
>
> Thanks,
> Gregg
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Gregg,
> >
> > Is there +5V supplied to the encoders?ÃÂ
> >
> >
> > Is there a ground connection between the encoders and Kanalog?
> >
> >
> > You still didn't include a specification on the encoders.ÃÂ Maybe they are open collector and they need pull up resistors?
> >
> >
> > Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground.ÃÂ All four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V.ÃÂ Also whenever one signal is high the complementary signal should be low and vice-versa.
> >
> > Also check the 26 pin ribbon cable between KFLOP and Kanalog.ÃÂ Check if it is somehow mangled or not fully plugged in.
> >
> > I don't know of anyone ever damaging the differential inputs.ÃÂ They are pretty well protected.
> >
> > Another possibility is a wrong software configuration.ÃÂ Those encoder signals come in KFLOP IO 0-7.ÃÂ If something is configuring those as outputs, that would be a problem.
> >
> >
> > I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
> >
> > If you would like to send us the board for testing send it with RMA#17.
> >
> > Regards
> > TK
> >
> > ÃÂ
> >
> >
> >
> >
> >
> > ________________________________
> > From: funncarsmi <funncars@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, March 7, 2013 2:04 PM
> > Subject: [DynoMotion] Re: Encoder Problem Returned
> >
> >
> > ÃÂ
> >
> > Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
> >
> > --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> > >
> > > They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> > > X axis:
> > > pin 1 =A+
> > > pin 2 =A-
> > > pin 3 =B+
> > > pin 4 =B-
> > >
> > > Y axis:
> > > pin 5 =A+
> > > pin 6 =A-
> > > pin 7 =B+
> > > pin 8 =B-
> > >
> > > Z axis:
> > > pin 9 =A+
> > > pin 10 =A-
> > > pin 11 =B+
> > > pin 12 =B-
> > >
> > > 4th axis:
> > > pin 13 =A+
> > > pin 14 =A-
> > > pin 15 =B+
> > > pin 16 =B-
> > >
> > > The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> > > Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
> > >
> > > -Gregg
> > >
> > >
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Gregg,
> > > >
> > > > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> > > >
> > > > Are you doing this?ÃâàWhat kind of encoders do you have?ÃâàPlease include specifications.ÃâàHow is it wired exactly?ÃâÃÂ
> > > >
> > > > Regards,
> > > > TK
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: funncarsmi <funncars@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, March 6, 2013 9:21 PM
> > > > Subject: [DynoMotion] Encoder Problem Returned
> > > >
> > > >
> > > > ÃâÃÂ
> > > > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> > > >
> > > > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> > > >
> > > > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> > > >
> > > > Gregg
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 6956 |
From: Tom Kerekes |
Date: 3/11/2013 |
Subject: Re: Encoder Problem Returned |
Hi Gregg,
It seems the 152 model encoders is "complementary square wave". And then they talk about 7404 or 7406 open collector drivers but it isn't clear which it is. Does it say in the other pages you left out? It is probably the 7404 type which is a pretty weak drive. It sinks current fairly well but can only source 0.4ma. That is probably why the signal levels are so low. Line Drivers can source about 50X more current. You might try adding 400ohm pull up resistors to +5V at the Kanalog end. Or switch to encoders with proper line drivers like the 153 models.
http://www.mouser.com/ds/2/405/sn74ls04-60244.pdf
The checking/unchecking the enable boxes in KMotion only enable and disable the axis. It will not download any
configuration. We also do not recommend using any Flashed configurations or any Launch on PowerUp Threads. There is no reason for any of that if you have a PC in your system. A C program can be used to configure everything from scratch each time which is much simpler. To remove any unknown Flashed programs and configuration from KFLOP perform a Flash Ne Version of the latest Version.
The differential encoder signals on Kanalog JP1 and JP2 are converted to single ended and connect to the standard single ended encoder inputs on KFLOP JP7 and JP5.
The Console DAC commands are only diagnostic commands to test the DAC, your wiring, and the Amplifier and Motor. It will just put a fixed constant voltage to the Amplifier. Depending on whether your amplifier controls current (torque=acceleration), or velocity the motor should then just move or accelerate forever. This is totally different then enabling the
servo and doing a move in a controlled manner where the servo would be constantly varying the DAC to make the motor move or hold in a controlled manner.
HTH Regards TK
Group: DynoMotion |
Message: 6957 |
From: az9633@ymail.com |
Date: 3/11/2013 |
Subject: Re: Encoder Problem Returned |
Tom , Gregg:
I think Gregg said he was using 153 encoders and the sheet he mentions is for 152's
I've sent a pdf with the DRC 153 encoder spec sheet to File : /Tree 320 3-Axis Mill/DRC150-2-3.pdf
See if that helps.
AZ
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Gregg,
>
> It seems the 152 model encoders is "complementary square wave". And then they talk about 7404 or 7406 open collector drivers but it isn't clear which it is.  Does it say in the other pages you left out? It is probably the 7404 type which is a pretty weak drive. It sinks current fairly well but can only source 0.4ma. That is probably why the signal levels are so low. Line Drivers can source about 50X more current. You might try adding 400ohm pull up resistors to +5V at the Kanalog end. Or switch to encoders with proper line drivers like the 153 models.
>
> http://www.mouser.com/ds/2/405/sn74ls04-60244.pdf
>
> The checking/unchecking the enable boxes in KMotion only enable and disable the axis. It will not download any configuration. We also do not recommend using any Flashed configurations or any Launch on PowerUp Threads. There is no reason for any of that if you have a PC in your system. A C program can be used to configure everything from scratch each time which is much simpler. To remove any unknown Flashed programs and configuration from KFLOP perform a Flash Ne Version of the latest Version.
>
> The differential encoder signals on Kanalog JP1 and JP2 are converted to single ended and connect to the standard single ended encoder inputs on KFLOP JP7 and JP5.
>
> The Console DAC commands are only diagnostic commands to test the DAC, your wiring, and the Amplifier and Motor. It will just put a fixed constant voltage to the Amplifier. Depending on whether your amplifier controls current (torque=acceleration), or velocity the motor should then just move or accelerate forever. This is totally different then enabling the servo and doing a move in a controlled manner where the servo would be constantly varying the DAC to make the motor move or hold in a controlled manner.
>
> HTH
> Regards
> TK
>
>
>
>
>
>
> ________________________________
> From: funncarsmi <funncars@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, March 11, 2013 2:12 PM
> Subject: [DynoMotion] Re: Encoder Problem Returned
>
>
> Â
> Answers embedded in your reply below: ****
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
>
> Hi Gregg,
>
> You still didn't include a specification link for your encoders.
> ***Encoder spec sheet is in Files\Tree 320 3-axis mill\DRC-152 encoder spec.
> Before I believe you had different problems. What did you change?
> ***From last week? I rebooted the system, no other changes. That is one of the things that is making this so hard. Even last night from one reboot to the next it seemed to boot differently. i.e even though the system would boot all the data, I would still need to download the configuration for each axis and then the drives would be enabled ...even though the enable box is checked in the axis screen. checking or unchecking the enable box would not do anything until after I downloaded the configuration for that channel ...even though I have not changed anything on the configuration screen!
>
> *** I did upgrade from 4.23 to 4.29 and finalized wire connections so they were not a rats nest over the past 2 months.
>
> 2V seems a little low but should work fine. Where are you scoping? at the Kanalog end or encoder end?
> *** scope is connected directly at the kanalog input. checking the encoder output both when it is not connected and when connected to kanalog.
>
> Â Â Is the encoder wiring shielded?Â
> ***Yes. this was factory done by Tree in the 1980's. The connections look original and show no resistance.
>
> I'm not sure what you mean by "the board is grounded". Possibly not a good idea if you are referring to earth ground.
> *** I ran the board without a ground and now with a ground wire. Yes, from the ground location on the board to the earth ground. I can easily remove it. It doesn't seem to have any effect on anything.
>
> Regarding:
>
> #1 it is unlimited
> *** That is how I remember my kMotion ver 4.23 working, but THAT IS NOT HOW MY v. 4.29 software IS RESPONDING NOW!
>
> #2 Use Output Offset. Input Offset is used for ADC input offset (resolvers).
> *** OK, I was using the input offset with incremental quadrature encoders. I will change that and only use the output now.
>
> #3 When using Kanalog JP7 is basically totally consumed by the Kanalog Communication you shouldn't worry about it. KFLOP auto detects Kanalog and uses JP7 for all the IO. There are over 200 bits of IO transferred back and forth between KFLOP and Kanalog every 90us Servo Sample.  If you change the IO on JP7 you will corrupt the communication to Kanalog and strange things will happen. Never change or use any of the IO on JP7 when using a Kanalog. .03V is within the tolerance of 0V for Kanalogs 20V output range.
> *** OK. That helps! And yes strange things were happening! I thought the signal was JP1 , JP2, & JP9 signals were muxed to Kflop and I needed to set them on the Kflop digital IO settings ...especially after you said make sure the ports are set to input and nothing else is using them. I won't touch kflop output bits 0-16 or 36-43. Will they the system "just know" JP2 has encoder index info coming in?
>
> #4 Your description of the Kanalog Analog I/O Screen seems correct. Kanalog has 8 ADC inputs (JP6) and 8 DAC outputs (JP11). They are numbered 0 through 7 as shown on the left of the screen. The row numbers apply to both the ADC and DACS. The ADCs and DACs are both displayed in counts and Volts. Unders the DACs column 0 = 0.000V means that DAC is set to 0 counts which is 0V.
> *** OK, that helps a lot and makes sense. again a misunderstanding we didn't realize that was counts and voltage on the right, we were reading it as pins and volts.
>
> #5 I don't understand this. But sometimes encoders are more easily influenced by noise when they are positioned right at the edge of a transition.
>
> #6 It is up to you to create your own init.c C program that applies to your system. Give it any name you wish and then configure Mach3 or KMotionCNC to use it to initialize the system. You can create it by starting with one of the examples and changing/pasting your parameters into it. See Step 4 here (the process is the same whether or not you are using Mach3):
> http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
>
> *** I edited and was using the "launch thread on power up" on the configuration screen. I was expecting to find a file named "init.c" and I don't have one.
>
> This brings me to a new question: How do I know what c programs are being launched? Clearly something is launched even if I do not check any of the 1-7 threads on the "launch on power up" menu in configuration.
>
> In a email I read from the archives you wrote (I think to Bengt)
> "Step #1 (Check Amplifier)
> With the axis disabled, write values to the DAC using the Console Screen.
> The range of DAC values is +/-2047 counts which correspond to +/-10V.
> USE SMALL numbers
> ie. 100 or 200, DAC0=100 DAC0=-200 DAC0=0
> The amplifier should be configured to control Velocity."
>
> **** Do you mean in the step response screen plot velocity, output vs time, secs? Clearly the DAC0=100 is a console command. Does that mean you want me to just use the console and make the axis move? How (where) do I "control velocity"?
>
> ****Gregg
>
> HTH
> Regards
> TK
>
> __________________________________________________________
> __________________________________________________________
> ________________________________
> > From: funncarsmi <funncars@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, March 11, 2013 2:45 AM
> > Subject: [DynoMotion] Re: Encoder Problem Returned
> >
> >
> > ÃÂ
> > I don't mind you asking basic questions, we all overlook the simple things sometimes. I have a lot of simple questions that I can't find the answers to in the documentation. I am very good with mechanical items, and I have two different friends helping me - one has 10+ years of experience working on robots (for robot mfg), and the other very good with electronics and writing software. All 3 of us have been struggling with this ...we take 3 steps forward and 2 back. I am using ver 4.29.
> >
> > The encoders are Dynamic Research DRC-153 incremental encoder. They are outputting a nice 2volt square wave on A, A- ; and on B, B-. There appears to be a good ground on the encoders and the board is grounded. Yes the encoders are all getting power and they are all outputting a 2V square wave signal. There is about .1V of noise on the 5V line, I will try to minimize this on Tuesday when I work on the mill.
> >
> > I have come to the conclusion it is not the encoder or the board hardware, but probably software settings and possibly noise. There are numerous software things going on that I don't find documentation for so there will a list of questions.
> >
> > 1) In the Configuration screen: How many times should you be able to change a setting and be able to download it to the board before needing to reboot the kflop board? Sometimes is it 2 or 3, other times we are limited to once per channel. It makes no sense that this should change from one reboot to another reboot, but when you hit that random limit you can enter anything, download it to kflop, and it will not take place until the Kflop system is disconnected from USB and hard booted. I would expect it should be unlimited, but that is clearly not the case.
> >
> > 2) In the Configuration screen: When do you use input channel offset to stop drift vs output channel offset to stop drift? And if the offset is designed for some other reason ââ¬Â¦when to use it each of these offset settings.
> >
> > 3) The KFLOP Digital I/O is totally confusing to me. On reboot the digital I/O shows output boxes 8 (home 0), 9 (home 1), 10 (home 2), 12 (Lim+0), 13 (Lim -0), 15 (Lim -1) are checked. The voltage out of JP11 is measured using a volt meter with values of ch0 =.01V; ch1 =.01V; ch2 =-.03V.
> > But if I uncheck the digital I/O output "home" boxes (8, 9, 10) ...then the voltage at JP11 jumps from .01V to .31V. What do those ports have to do with voltage coming out of JP11? And why are they always set as outputs at boot up? I don't see anything in my "launch on power up thread" that is commanding these.
> >
> > 4) The Kanalog Analog I/O screen is another area where I don't understand what is going on. On the left we see ADC's (from where??))and they are numbered 0-7; on the right are DAC's that I would expect to be numbered 0-7 ...but they are all numbered "0". Why? One time upon reboot the second value down was labeled #16, but all the others were "0". The voltage always says 0.00 volts on all the displays ...even when we can measure voltage at each pin of JP11 pins. I know there are muxed from kanalog ...but from which pins to to which pins?
> >
> > 5) All the encoders seemed to count properly for 3 hours, then after one of the hard reboots of the board, the Z axis started counting up very quickly even though the shaft had no motion ...yet the encoder is still putting out the same nice square wave. (last week it was the X axis that was doing this.) I don't understand why one axis would do this and not all 3 if it is noise on the power line ...especially since they are all connected to the same power line.
> >
> > 6) Your video describing uploads downloads save load and clipboard talks about the init.c file ââ¬Â¦.Where is the init.c file stored? Windows can't find any file with that name on my hard drive,
> >
> > I'm sure I will move forward 3 steps and back on resulting in answers, but also more questions, after I work on the mill on Tuesday.
> >
> > Thanks,
> > Gregg
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Gregg,
> > >
> > > Is there +5V supplied to the encoders?ÃâÃÂ
> > >
> > >
> > > Is there a ground connection between the encoders and Kanalog?
> > >
> > >
> > > You still didn't include a specification on the encoders.ÃâàMaybe they are open collector and they need pull up resistors?
> > >
> > >
> > > Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground.ÃâàAll four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V.ÃâàAlso whenever one signal is high the complementary signal should be low and vice-versa.
> > >
> > > Also check the 26 pin ribbon cable between KFLOP and Kanalog.ÃâàCheck if it is somehow mangled or not fully plugged in.
> > >
> > > I don't know of anyone ever damaging the differential inputs.ÃâàThey are pretty well protected.
> > >
> > > Another possibility is a wrong software configuration.ÃâàThose encoder signals come in KFLOP IO 0-7.ÃâàIf something is configuring those as outputs, that would be a problem.
> > >
> > >
> > > I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
> > >
> > > If you would like to send us the board for testing send it with RMA#17.
> > >
> > > Regards
> > > TK
> > >
> > > ÃâÃÂ
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: funncarsmi <funncars@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thursday, March 7, 2013 2:04 PM
> > > Subject: [DynoMotion] Re: Encoder Problem Returned
> > >
> > >
> > > ÃâÃÂ
> > >
> > > Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
> > >
> > > --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> > > >
> > > > They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> > > > X axis:
> > > > pin 1 =A+
> > > > pin 2 =A-
> > > > pin 3 =B+
> > > > pin 4 =B-
> > > >
> > > > Y axis:
> > > > pin 5 =A+
> > > > pin 6 =A-
> > > > pin 7 =B+
> > > > pin 8 =B-
> > > >
> > > > Z axis:
> > > > pin 9 =A+
> > > > pin 10 =A-
> > > > pin 11 =B+
> > > > pin 12 =B-
> > > >
> > > > 4th axis:
> > > > pin 13 =A+
> > > > pin 14 =A-
> > > > pin 15 =B+
> > > > pin 16 =B-
> > > >
> > > > The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> > > > Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
> > > >
> > > > -Gregg
> > > >
> > > >
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Gregg,
> > > > >
> > > > > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> > > > >
> > > > > Are you doing this?ÃÆ'ââ¬Å¡ÃâàWhat kind of encoders do you have?ÃÆ'ââ¬Å¡ÃâàPlease include specifications.ÃÆ'ââ¬Å¡ÃâàHow is it wired exactly?ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > Regards,
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: funncarsmi <funncars@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, March 6, 2013 9:21 PM
> > > > > Subject: [DynoMotion] Encoder Problem Returned
> > > > >
> > > > >
> > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> > > > >
> > > > > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> > > > >
> > > > > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> > > > >
> > > > > Gregg
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 6962 |
From: funncarsmi |
Date: 3/12/2013 |
Subject: Re: Encoder Problem Returned |
AZ,
I fat fingered the model number, the correct number is a DRC-152 (one-five-two) encoder. I will be adding the pull up resistors. Reloading the software onto a different computer (because some of the issues seem to be software - like suddenly not able to download configuration to the kflop unless I reboot the kflop), and doing what I can to insure clean 5V power to the encoder.
I am also thinking about adding a 7272 line driver, but I will see if the pull up resistor helps first. Last resort I will be spending $$$ for new encoders to insure a good signal.
Gregg
--- In DynoMotion@yahoogroups.com, "az9633@..." <az@...> wrote:
>
> Ton, Gregg:
> I saw this post and thought I'd send Tom an email with the encoder specs. DRC is no longer making encoders and the specs may be difficult to find. Hope it helps.
>
> My two cents worth. It smells like there is some noise problem possibly caused by grounding loops or noise pickup via grounds in Greggs system. I've seen some of these encoders have the shields tied to the encoder case.
>
> AZ
>
> --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> >
> > I don't mind you asking basic questions, we all overlook the simple things sometimes. I have a lot of simple questions that I can't find the answers to in the documentation. I am very good with mechanical items, and I have two different friends helping me - one has 10+ years of experience working on robots (for robot mfg), and the other very good with electronics and writing software. All 3 of us have been struggling with this ...we take 3 steps forward and 2 back. I am using ver 4.29.
> >
> > The encoders are Dynamic Research DRC-153 incremental encoder. They are outputting a nice 2volt square wave on A, A- ; and on B, B-. There appears to be a good ground on the encoders and the board is grounded. Yes the encoders are all getting power and they are all outputting a 2V square wave signal. There is about .1V of noise on the 5V line, I will try to minimize this on Tuesday when I work on the mill.
> >
> > I have come to the conclusion it is not the encoder or the board hardware, but probably software settings and possibly noise. There are numerous software things going on that I don't find documentation for so there will a list of questions.
> >
> >
> > 1) In the Configuration screen: How many times should you be able to change a setting and be able to download it to the board before needing to reboot the kflop board? Sometimes is it 2 or 3, other times we are limited to once per channel. It makes no sense that this should change from one reboot to another reboot, but when you hit that random limit you can enter anything, download it to kflop, and it will not take place until the Kflop system is disconnected from USB and hard booted. I would expect it should be unlimited, but that is clearly not the case.
> >
> > 2) In the Configuration screen: When do you use input channel offset to stop drift vs output channel offset to stop drift? And if the offset is designed for some other reason
when to use it each of these offset settings.
> >
> > 3) The KFLOP Digital I/O is totally confusing to me. On reboot the digital I/O shows output boxes 8 (home 0), 9 (home 1), 10 (home 2), 12 (Lim+0), 13 (Lim -0), 15 (Lim -1) are checked. The voltage out of JP11 is measured using a volt meter with values of ch0 =.01V; ch1 =.01V; ch2 =-.03V.
> > But if I uncheck the digital I/O output "home" boxes (8, 9, 10) ...then the voltage at JP11 jumps from .01V to .31V. What do those ports have to do with voltage coming out of JP11? And why are they always set as outputs at boot up? I don't see anything in my "launch on power up thread" that is commanding these.
> >
> > 4) The Kanalog Analog I/O screen is another area where I don't understand what is going on. On the left we see ADC's (from where??))and they are numbered 0-7; on the right are DAC's that I would expect to be numbered 0-7 ...but they are all numbered "0". Why? One time upon reboot the second value down was labeled #16, but all the others were "0". The voltage always says 0.00 volts on all the displays ...even when we can measure voltage at each pin of JP11 pins. I know there are muxed from kanalog ...but from which pins to to which pins?
> >
> > 5) All the encoders seemed to count properly for 3 hours, then after one of the hard reboots of the board, the Z axis started counting up very quickly even though the shaft had no motion ...yet the encoder is still putting out the same nice square wave. (last week it was the X axis that was doing this.) I don't understand why one axis would do this and not all 3 if it is noise on the power line ...especially since they are all connected to the same power line.
> >
> > 6) Your video describing uploads downloads save load and clipboard talks about the init.c file
.Where is the init.c file stored? Windows can't find any file with that name on my hard drive,
> >
> > I'm sure I will move forward 3 steps and back on resulting in answers, but also more questions, after I work on the mill on Tuesday.
> >
> > Thanks,
> > Gregg
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Gregg,
> > >
> > > Is there +5V supplied to the encoders?Â
> > >
> > >
> > > Is there a ground connection between the encoders and Kanalog?
> > >
> > >
> > > You still didn't include a specification on the encoders. Maybe they are open collector and they need pull up resistors?
> > >
> > >
> > > Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground. All four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V. Also whenever one signal is high the complementary signal should be low and vice-versa.
> > >
> > > Also check the 26 pin ribbon cable between KFLOP and Kanalog. Check if it is somehow mangled or not fully plugged in.
> > >
> > > I don't know of anyone ever damaging the differential inputs. They are pretty well protected.
> > >
> > > Another possibility is a wrong software configuration. Those encoder signals come in KFLOP IO 0-7. If something is configuring those as outputs, that would be a problem.
> > >
> > >
> > > I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
> > >
> > > If you would like to send us the board for testing send it with RMA#17.
> > >
> > > Regards
> > > TK
> > >
> > > Â
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: funncarsmi <funncars@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thursday, March 7, 2013 2:04 PM
> > > Subject: [DynoMotion] Re: Encoder Problem Returned
> > >
> > >
> > > Â
> > >
> > > Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
> > >
> > > --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> > > >
> > > > They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> > > > X axis:
> > > > pin 1 =A+
> > > > pin 2 =A-
> > > > pin 3 =B+
> > > > pin 4 =B-
> > > >
> > > > Y axis:
> > > > pin 5 =A+
> > > > pin 6 =A-
> > > > pin 7 =B+
> > > > pin 8 =B-
> > > >
> > > > Z axis:
> > > > pin 9 =A+
> > > > pin 10 =A-
> > > > pin 11 =B+
> > > > pin 12 =B-
> > > >
> > > > 4th axis:
> > > > pin 13 =A+
> > > > pin 14 =A-
> > > > pin 15 =B+
> > > > pin 16 =B-
> > > >
> > > > The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> > > > Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
> > > >
> > > > -Gregg
> > > >
> > > >
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Gregg,
> > > > >
> > > > > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> > > > >
> > > > > Are you doing this?ÃÂ What kind of encoders do you have?ÃÂ Please include specifications.ÃÂ How is it wired exactly?ÃÂ
> > > > >
> > > > > Regards,
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: funncarsmi <funncars@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, March 6, 2013 9:21 PM
> > > > > Subject: [DynoMotion] Encoder Problem Returned
> > > > >
> > > > >
> > > > > ÃÂ
> > > > > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> > > > >
> > > > > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> > > > >
> > > > > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> > > > >
> > > > > Gregg
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 6963 |
From: az@aimele.com |
Date: 3/12/2013 |
Subject: Re: Encoder Problem Returned |
OK, I hope the pull ups do the trick, Good luck, AZ
Group: DynoMotion |
Message: 6969 |
From: funncarsmi |
Date: 3/12/2013 |
Subject: Re: Encoder Problem Returned |
When installing the pullup resistors:
do I use the resistor to connect A, B, I of each encoder with +5VDC? using 3 resistors per channel(leaving A-, B-, I- untouched)
or
do I connect A, A-, B, B-, I, I- all to 5VDC using 400 Ohm resistors?
using 6 resistors per encoder.
All the examples I find on the internet only have diagrams for single ended encoders, and mine is diferential.
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Gregg,
>
> It seems the 152 model encoders is "complementary square wave". And then they talk about 7404 or 7406 open collector drivers but it isn't clear which it is.  Does it say in the other pages you left out? It is probably the 7404 type which is a pretty weak drive. It sinks current fairly well but can only source 0.4ma. That is probably why the signal levels are so low. Line Drivers can source about 50X more current. You might try adding 400ohm pull up resistors to +5V at the Kanalog end. Or switch to encoders with proper line drivers like the 153 models.
>
> http://www.mouser.com/ds/2/405/sn74ls04-60244.pdf
>
> The checking/unchecking the enable boxes in KMotion only enable and disable the axis. It will not download any configuration. We also do not recommend using any Flashed configurations or any Launch on PowerUp Threads. There is no reason for any of that if you have a PC in your system. A C program can be used to configure everything from scratch each time which is much simpler. To remove any unknown Flashed programs and configuration from KFLOP perform a Flash Ne Version of the latest Version.
>
> The differential encoder signals on Kanalog JP1 and JP2 are converted to single ended and connect to the standard single ended encoder inputs on KFLOP JP7 and JP5.
>
> The Console DAC commands are only diagnostic commands to test the DAC, your wiring, and the Amplifier and Motor. It will just put a fixed constant voltage to the Amplifier. Depending on whether your amplifier controls current (torque=acceleration), or velocity the motor should then just move or accelerate forever. This is totally different then enabling the servo and doing a move in a controlled manner where the servo would be constantly varying the DAC to make the motor move or hold in a controlled manner.
>
> HTH
> Regards
> TK
>
>
>
>
>
>
> ________________________________
> From: funncarsmi <funncars@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, March 11, 2013 2:12 PM
> Subject: [DynoMotion] Re: Encoder Problem Returned
>
>
> Â
> Answers embedded in your reply below: ****
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
>
> Hi Gregg,
>
> You still didn't include a specification link for your encoders.
> ***Encoder spec sheet is in Files\Tree 320 3-axis mill\DRC-152 encoder spec.
> Before I believe you had different problems. What did you change?
> ***From last week? I rebooted the system, no other changes. That is one of the things that is making this so hard. Even last night from one reboot to the next it seemed to boot differently. i.e even though the system would boot all the data, I would still need to download the configuration for each axis and then the drives would be enabled ...even though the enable box is checked in the axis screen. checking or unchecking the enable box would not do anything until after I downloaded the configuration for that channel ...even though I have not changed anything on the configuration screen!
>
> *** I did upgrade from 4.23 to 4.29 and finalized wire connections so they were not a rats nest over the past 2 months.
>
> 2V seems a little low but should work fine. Where are you scoping? at the Kanalog end or encoder end?
> *** scope is connected directly at the kanalog input. checking the encoder output both when it is not connected and when connected to kanalog.
>
> Â Â Is the encoder wiring shielded?Â
> ***Yes. this was factory done by Tree in the 1980's. The connections look original and show no resistance.
>
> I'm not sure what you mean by "the board is grounded". Possibly not a good idea if you are referring to earth ground.
> *** I ran the board without a ground and now with a ground wire. Yes, from the ground location on the board to the earth ground. I can easily remove it. It doesn't seem to have any effect on anything.
>
> Regarding:
>
> #1 it is unlimited
> *** That is how I remember my kMotion ver 4.23 working, but THAT IS NOT HOW MY v. 4.29 software IS RESPONDING NOW!
>
> #2 Use Output Offset. Input Offset is used for ADC input offset (resolvers).
> *** OK, I was using the input offset with incremental quadrature encoders. I will change that and only use the output now.
>
> #3 When using Kanalog JP7 is basically totally consumed by the Kanalog Communication you shouldn't worry about it. KFLOP auto detects Kanalog and uses JP7 for all the IO. There are over 200 bits of IO transferred back and forth between KFLOP and Kanalog every 90us Servo Sample.  If you change the IO on JP7 you will corrupt the communication to Kanalog and strange things will happen. Never change or use any of the IO on JP7 when using a Kanalog. .03V is within the tolerance of 0V for Kanalogs 20V output range.
> *** OK. That helps! And yes strange things were happening! I thought the signal was JP1 , JP2, & JP9 signals were muxed to Kflop and I needed to set them on the Kflop digital IO settings ...especially after you said make sure the ports are set to input and nothing else is using them. I won't touch kflop output bits 0-16 or 36-43. Will they the system "just know" JP2 has encoder index info coming in?
>
> #4 Your description of the Kanalog Analog I/O Screen seems correct. Kanalog has 8 ADC inputs (JP6) and 8 DAC outputs (JP11). They are numbered 0 through 7 as shown on the left of the screen. The row numbers apply to both the ADC and DACS. The ADCs and DACs are both displayed in counts and Volts. Unders the DACs column 0 = 0.000V means that DAC is set to 0 counts which is 0V.
> *** OK, that helps a lot and makes sense. again a misunderstanding we didn't realize that was counts and voltage on the right, we were reading it as pins and volts.
>
> #5 I don't understand this. But sometimes encoders are more easily influenced by noise when they are positioned right at the edge of a transition.
>
> #6 It is up to you to create your own init.c C program that applies to your system. Give it any name you wish and then configure Mach3 or KMotionCNC to use it to initialize the system. You can create it by starting with one of the examples and changing/pasting your parameters into it. See Step 4 here (the process is the same whether or not you are using Mach3):
> http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
>
> *** I edited and was using the "launch thread on power up" on the configuration screen. I was expecting to find a file named "init.c" and I don't have one.
>
> This brings me to a new question: How do I know what c programs are being launched? Clearly something is launched even if I do not check any of the 1-7 threads on the "launch on power up" menu in configuration.
>
> In a email I read from the archives you wrote (I think to Bengt)
> "Step #1 (Check Amplifier)
> With the axis disabled, write values to the DAC using the Console Screen.
> The range of DAC values is +/-2047 counts which correspond to +/-10V.
> USE SMALL numbers
> ie. 100 or 200, DAC0=100 DAC0=-200 DAC0=0
> The amplifier should be configured to control Velocity."
>
> **** Do you mean in the step response screen plot velocity, output vs time, secs? Clearly the DAC0=100 is a console command. Does that mean you want me to just use the console and make the axis move? How (where) do I "control velocity"?
>
> ****Gregg
>
> HTH
> Regards
> TK
>
> __________________________________________________________
> __________________________________________________________
> ________________________________
> > From: funncarsmi <funncars@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, March 11, 2013 2:45 AM
> > Subject: [DynoMotion] Re: Encoder Problem Returned
> >
> >
> > ÃÂ
> > I don't mind you asking basic questions, we all overlook the simple things sometimes. I have a lot of simple questions that I can't find the answers to in the documentation. I am very good with mechanical items, and I have two different friends helping me - one has 10+ years of experience working on robots (for robot mfg), and the other very good with electronics and writing software. All 3 of us have been struggling with this ...we take 3 steps forward and 2 back. I am using ver 4.29.
> >
> > The encoders are Dynamic Research DRC-153 incremental encoder. They are outputting a nice 2volt square wave on A, A- ; and on B, B-. There appears to be a good ground on the encoders and the board is grounded. Yes the encoders are all getting power and they are all outputting a 2V square wave signal. There is about .1V of noise on the 5V line, I will try to minimize this on Tuesday when I work on the mill.
> >
> > I have come to the conclusion it is not the encoder or the board hardware, but probably software settings and possibly noise. There are numerous software things going on that I don't find documentation for so there will a list of questions.
> >
> > 1) In the Configuration screen: How many times should you be able to change a setting and be able to download it to the board before needing to reboot the kflop board? Sometimes is it 2 or 3, other times we are limited to once per channel. It makes no sense that this should change from one reboot to another reboot, but when you hit that random limit you can enter anything, download it to kflop, and it will not take place until the Kflop system is disconnected from USB and hard booted. I would expect it should be unlimited, but that is clearly not the case.
> >
> > 2) In the Configuration screen: When do you use input channel offset to stop drift vs output channel offset to stop drift? And if the offset is designed for some other reason ââ¬Â¦when to use it each of these offset settings.
> >
> > 3) The KFLOP Digital I/O is totally confusing to me. On reboot the digital I/O shows output boxes 8 (home 0), 9 (home 1), 10 (home 2), 12 (Lim+0), 13 (Lim -0), 15 (Lim -1) are checked. The voltage out of JP11 is measured using a volt meter with values of ch0 =.01V; ch1 =.01V; ch2 =-.03V.
> > But if I uncheck the digital I/O output "home" boxes (8, 9, 10) ...then the voltage at JP11 jumps from .01V to .31V. What do those ports have to do with voltage coming out of JP11? And why are they always set as outputs at boot up? I don't see anything in my "launch on power up thread" that is commanding these.
> >
> > 4) The Kanalog Analog I/O screen is another area where I don't understand what is going on. On the left we see ADC's (from where??))and they are numbered 0-7; on the right are DAC's that I would expect to be numbered 0-7 ...but they are all numbered "0". Why? One time upon reboot the second value down was labeled #16, but all the others were "0". The voltage always says 0.00 volts on all the displays ...even when we can measure voltage at each pin of JP11 pins. I know there are muxed from kanalog ...but from which pins to to which pins?
> >
> > 5) All the encoders seemed to count properly for 3 hours, then after one of the hard reboots of the board, the Z axis started counting up very quickly even though the shaft had no motion ...yet the encoder is still putting out the same nice square wave. (last week it was the X axis that was doing this.) I don't understand why one axis would do this and not all 3 if it is noise on the power line ...especially since they are all connected to the same power line.
> >
> > 6) Your video describing uploads downloads save load and clipboard talks about the init.c file ââ¬Â¦.Where is the init.c file stored? Windows can't find any file with that name on my hard drive,
> >
> > I'm sure I will move forward 3 steps and back on resulting in answers, but also more questions, after I work on the mill on Tuesday.
> >
> > Thanks,
> > Gregg
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Gregg,
> > >
> > > Is there +5V supplied to the encoders?ÃâÃÂ
> > >
> > >
> > > Is there a ground connection between the encoders and Kanalog?
> > >
> > >
> > > You still didn't include a specification on the encoders.ÃâàMaybe they are open collector and they need pull up resistors?
> > >
> > >
> > > Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground.ÃâàAll four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V.ÃâàAlso whenever one signal is high the complementary signal should be low and vice-versa.
> > >
> > > Also check the 26 pin ribbon cable between KFLOP and Kanalog.ÃâàCheck if it is somehow mangled or not fully plugged in.
> > >
> > > I don't know of anyone ever damaging the differential inputs.ÃâàThey are pretty well protected.
> > >
> > > Another possibility is a wrong software configuration.ÃâàThose encoder signals come in KFLOP IO 0-7.ÃâàIf something is configuring those as outputs, that would be a problem.
> > >
> > >
> > > I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
> > >
> > > If you would like to send us the board for testing send it with RMA#17.
> > >
> > > Regards
> > > TK
> > >
> > > ÃâÃÂ
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: funncarsmi <funncars@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thursday, March 7, 2013 2:04 PM
> > > Subject: [DynoMotion] Re: Encoder Problem Returned
> > >
> > >
> > > ÃâÃÂ
> > >
> > > Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
> > >
> > > --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> > > >
> > > > They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> > > > X axis:
> > > > pin 1 =A+
> > > > pin 2 =A-
> > > > pin 3 =B+
> > > > pin 4 =B-
> > > >
> > > > Y axis:
> > > > pin 5 =A+
> > > > pin 6 =A-
> > > > pin 7 =B+
> > > > pin 8 =B-
> > > >
> > > > Z axis:
> > > > pin 9 =A+
> > > > pin 10 =A-
> > > > pin 11 =B+
> > > > pin 12 =B-
> > > >
> > > > 4th axis:
> > > > pin 13 =A+
> > > > pin 14 =A-
> > > > pin 15 =B+
> > > > pin 16 =B-
> > > >
> > > > The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> > > > Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
> > > >
> > > > -Gregg
> > > >
> > > >
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Gregg,
> > > > >
> > > > > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> > > > >
> > > > > Are you doing this?ÃÆ'ââ¬Å¡ÃâàWhat kind of encoders do you have?ÃÆ'ââ¬Å¡ÃâàPlease include specifications.ÃÆ'ââ¬Å¡ÃâàHow is it wired exactly?ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > > Regards,
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: funncarsmi <funncars@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, March 6, 2013 9:21 PM
> > > > > Subject: [DynoMotion] Encoder Problem Returned
> > > > >
> > > > >
> > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> > > > >
> > > > > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> > > > >
> > > > > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> > > > >
> > > > > Gregg
> > > > >
> > > >
> > >
> >
>
|
|
Group: DynoMotion |
Message: 6970 |
From: az9633@ymail.com |
Date: 3/13/2013 |
Subject: Re: Encoder Problem Returned |
Use pullups on all of 6 of them. Your encoder is most accurately described as a "open collector, complementary" because it isn't using differential line drivers for outputs. In either case When A is high, A- will be low etc.
The major difference is the line driver output devices will drive the signals high and low with up to 50 ma capability permitting much longer cable runs (1000 feet +)and higher frequencies than open collector devices.
Good luck,
AZ
--- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@...> wrote:
>
> When installing the pullup resistors:
> do I use the resistor to connect A, B, I of each encoder with +5VDC? using 3 resistors per channel(leaving A-, B-, I- untouched)
> or
> do I connect A, A-, B, B-, I, I- all to 5VDC using 400 Ohm resistors?
> using 6 resistors per encoder.
>
> All the examples I find on the internet only have diagrams for single ended encoders, and mine is diferential.
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Gregg,
> >
> > It seems the 152 model encoders is "complementary square wave". And then they talk about 7404 or 7406 open collector drivers but it isn't clear which it is.  Does it say in the other pages you left out? It is probably the 7404 type which is a pretty weak drive. It sinks current fairly well but can only source 0.4ma. That is probably why the signal levels are so low. Line Drivers can source about 50X more current. You might try adding 400ohm pull up resistors to +5V at the Kanalog end. Or switch to encoders with proper line drivers like the 153 models.
> >
> > http://www.mouser.com/ds/2/405/sn74ls04-60244.pdf
> >
> > The checking/unchecking the enable boxes in KMotion only enable and disable the axis. It will not download any configuration. We also do not recommend using any Flashed configurations or any Launch on PowerUp Threads. There is no reason for any of that if you have a PC in your system. A C program can be used to configure everything from scratch each time which is much simpler. To remove any unknown Flashed programs and configuration from KFLOP perform a Flash Ne Version of the latest Version.
> >
> > The differential encoder signals on Kanalog JP1 and JP2 are converted to single ended and connect to the standard single ended encoder inputs on KFLOP JP7 and JP5.
> >
> > The Console DAC commands are only diagnostic commands to test the DAC, your wiring, and the Amplifier and Motor. It will just put a fixed constant voltage to the Amplifier. Depending on whether your amplifier controls current (torque=acceleration), or velocity the motor should then just move or accelerate forever. This is totally different then enabling the servo and doing a move in a controlled manner where the servo would be constantly varying the DAC to make the motor move or hold in a controlled manner.
> >
> > HTH
> > Regards
> > TK
> >
> >
> >
> >
> >
> >
> > ________________________________
> > From: funncarsmi <funncars@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, March 11, 2013 2:12 PM
> > Subject: [DynoMotion] Re: Encoder Problem Returned
> >
> >
> > Â
> > Answers embedded in your reply below: ****
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Gregg,
> >
> > You still didn't include a specification link for your encoders.
> > ***Encoder spec sheet is in Files\Tree 320 3-axis mill\DRC-152 encoder spec.
> > Before I believe you had different problems. What did you change?
> > ***From last week? I rebooted the system, no other changes. That is one of the things that is making this so hard. Even last night from one reboot to the next it seemed to boot differently. i.e even though the system would boot all the data, I would still need to download the configuration for each axis and then the drives would be enabled ...even though the enable box is checked in the axis screen. checking or unchecking the enable box would not do anything until after I downloaded the configuration for that channel ...even though I have not changed anything on the configuration screen!
> >
> > *** I did upgrade from 4.23 to 4.29 and finalized wire connections so they were not a rats nest over the past 2 months.
> >
> > 2V seems a little low but should work fine. Where are you scoping? at the Kanalog end or encoder end?
> > *** scope is connected directly at the kanalog input. checking the encoder output both when it is not connected and when connected to kanalog.
> >
> > Â Â Is the encoder wiring shielded?Â
> > ***Yes. this was factory done by Tree in the 1980's. The connections look original and show no resistance.
> >
> > I'm not sure what you mean by "the board is grounded". Possibly not a good idea if you are referring to earth ground.
> > *** I ran the board without a ground and now with a ground wire. Yes, from the ground location on the board to the earth ground. I can easily remove it. It doesn't seem to have any effect on anything.
> >
> > Regarding:
> >
> > #1 it is unlimited
> > *** That is how I remember my kMotion ver 4.23 working, but THAT IS NOT HOW MY v. 4.29 software IS RESPONDING NOW!
> >
> > #2 Use Output Offset. Input Offset is used for ADC input offset (resolvers).
> > *** OK, I was using the input offset with incremental quadrature encoders. I will change that and only use the output now.
> >
> > #3 When using Kanalog JP7 is basically totally consumed by the Kanalog Communication you shouldn't worry about it. KFLOP auto detects Kanalog and uses JP7 for all the IO. There are over 200 bits of IO transferred back and forth between KFLOP and Kanalog every 90us Servo Sample.  If you change the IO on JP7 you will corrupt the communication to Kanalog and strange things will happen. Never change or use any of the IO on JP7 when using a Kanalog. .03V is within the tolerance of 0V for Kanalogs 20V output range.
> > *** OK. That helps! And yes strange things were happening! I thought the signal was JP1 , JP2, & JP9 signals were muxed to Kflop and I needed to set them on the Kflop digital IO settings ...especially after you said make sure the ports are set to input and nothing else is using them. I won't touch kflop output bits 0-16 or 36-43. Will they the system "just know" JP2 has encoder index info coming in?
> >
> > #4 Your description of the Kanalog Analog I/O Screen seems correct. Kanalog has 8 ADC inputs (JP6) and 8 DAC outputs (JP11). They are numbered 0 through 7 as shown on the left of the screen. The row numbers apply to both the ADC and DACS. The ADCs and DACs are both displayed in counts and Volts. Unders the DACs column 0 = 0.000V means that DAC is set to 0 counts which is 0V.
> > *** OK, that helps a lot and makes sense. again a misunderstanding we didn't realize that was counts and voltage on the right, we were reading it as pins and volts.
> >
> > #5 I don't understand this. But sometimes encoders are more easily influenced by noise when they are positioned right at the edge of a transition.
> >
> > #6 It is up to you to create your own init.c C program that applies to your system. Give it any name you wish and then configure Mach3 or KMotionCNC to use it to initialize the system. You can create it by starting with one of the examples and changing/pasting your parameters into it. See Step 4 here (the process is the same whether or not you are using Mach3):
> > http://www.dynomotion.com/Help/Mach3Plugin/Mach3.htm
> >
> > *** I edited and was using the "launch thread on power up" on the configuration screen. I was expecting to find a file named "init.c" and I don't have one.
> >
> > This brings me to a new question: How do I know what c programs are being launched? Clearly something is launched even if I do not check any of the 1-7 threads on the "launch on power up" menu in configuration.
> >
> > In a email I read from the archives you wrote (I think to Bengt)
> > "Step #1 (Check Amplifier)
> > With the axis disabled, write values to the DAC using the Console Screen.
> > The range of DAC values is +/-2047 counts which correspond to +/-10V.
> > USE SMALL numbers
> > ie. 100 or 200, DAC0=100 DAC0=-200 DAC0=0
> > The amplifier should be configured to control Velocity."
> >
> > **** Do you mean in the step response screen plot velocity, output vs time, secs? Clearly the DAC0=100 is a console command. Does that mean you want me to just use the console and make the axis move? How (where) do I "control velocity"?
> >
> > ****Gregg
> >
> > HTH
> > Regards
> > TK
> >
> > __________________________________________________________
> > __________________________________________________________
> > ________________________________
> > > From: funncarsmi <funncars@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, March 11, 2013 2:45 AM
> > > Subject: [DynoMotion] Re: Encoder Problem Returned
> > >
> > >
> > > ÃÂ
> > > I don't mind you asking basic questions, we all overlook the simple things sometimes. I have a lot of simple questions that I can't find the answers to in the documentation. I am very good with mechanical items, and I have two different friends helping me - one has 10+ years of experience working on robots (for robot mfg), and the other very good with electronics and writing software. All 3 of us have been struggling with this ...we take 3 steps forward and 2 back. I am using ver 4.29.
> > >
> > > The encoders are Dynamic Research DRC-153 incremental encoder. They are outputting a nice 2volt square wave on A, A- ; and on B, B-. There appears to be a good ground on the encoders and the board is grounded. Yes the encoders are all getting power and they are all outputting a 2V square wave signal. There is about .1V of noise on the 5V line, I will try to minimize this on Tuesday when I work on the mill.
> > >
> > > I have come to the conclusion it is not the encoder or the board hardware, but probably software settings and possibly noise. There are numerous software things going on that I don't find documentation for so there will a list of questions.
> > >
> > > 1) In the Configuration screen: How many times should you be able to change a setting and be able to download it to the board before needing to reboot the kflop board? Sometimes is it 2 or 3, other times we are limited to once per channel. It makes no sense that this should change from one reboot to another reboot, but when you hit that random limit you can enter anything, download it to kflop, and it will not take place until the Kflop system is disconnected from USB and hard booted. I would expect it should be unlimited, but that is clearly not the case.
> > >
> > > 2) In the Configuration screen: When do you use input channel offset to stop drift vs output channel offset to stop drift? And if the offset is designed for some other reason ââ¬Â¦when to use it each of these offset settings.
> > >
> > > 3) The KFLOP Digital I/O is totally confusing to me. On reboot the digital I/O shows output boxes 8 (home 0), 9 (home 1), 10 (home 2), 12 (Lim+0), 13 (Lim -0), 15 (Lim -1) are checked. The voltage out of JP11 is measured using a volt meter with values of ch0 =.01V; ch1 =.01V; ch2 =-.03V.
> > > But if I uncheck the digital I/O output "home" boxes (8, 9, 10) ...then the voltage at JP11 jumps from .01V to .31V. What do those ports have to do with voltage coming out of JP11? And why are they always set as outputs at boot up? I don't see anything in my "launch on power up thread" that is commanding these.
> > >
> > > 4) The Kanalog Analog I/O screen is another area where I don't understand what is going on. On the left we see ADC's (from where??))and they are numbered 0-7; on the right are DAC's that I would expect to be numbered 0-7 ...but they are all numbered "0". Why? One time upon reboot the second value down was labeled #16, but all the others were "0". The voltage always says 0.00 volts on all the displays ...even when we can measure voltage at each pin of JP11 pins. I know there are muxed from kanalog ...but from which pins to to which pins?
> > >
> > > 5) All the encoders seemed to count properly for 3 hours, then after one of the hard reboots of the board, the Z axis started counting up very quickly even though the shaft had no motion ...yet the encoder is still putting out the same nice square wave. (last week it was the X axis that was doing this.) I don't understand why one axis would do this and not all 3 if it is noise on the power line ...especially since they are all connected to the same power line.
> > >
> > > 6) Your video describing uploads downloads save load and clipboard talks about the init.c file ââ¬Â¦.Where is the init.c file stored? Windows can't find any file with that name on my hard drive,
> > >
> > > I'm sure I will move forward 3 steps and back on resulting in answers, but also more questions, after I work on the mill on Tuesday.
> > >
> > > Thanks,
> > > Gregg
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Gregg,
> > > >
> > > > Is there +5V supplied to the encoders?ÃâÃÂ
> > > >
> > > >
> > > > Is there a ground connection between the encoders and Kanalog?
> > > >
> > > >
> > > > You still didn't include a specification on the encoders.ÃâàMaybe they are open collector and they need pull up resistors?
> > > >
> > > >
> > > > Please use a volt meter and check the voltage levels right at the Kanalog screw terminals relative to a Kanalog Ground.ÃâàAll four signals (A+ A- B+ B-) should switch between > 3V and < 0.5V.ÃâàAlso whenever one signal is high the complementary signal should be low and vice-versa.
> > > >
> > > > Also check the 26 pin ribbon cable between KFLOP and Kanalog.ÃâàCheck if it is somehow mangled or not fully plugged in.
> > > >
> > > > I don't know of anyone ever damaging the differential inputs.ÃâàThey are pretty well protected.
> > > >
> > > > Another possibility is a wrong software configuration.ÃâàThose encoder signals come in KFLOP IO 0-7.ÃâàIf something is configuring those as outputs, that would be a problem.
> > > >
> > > >
> > > > I apologized if these questions seem very basic, but I'm just trying to cover every possibility.
> > > >
> > > > If you would like to send us the board for testing send it with RMA#17.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > > ÃâÃÂ
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: funncarsmi <funncars@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Thursday, March 7, 2013 2:04 PM
> > > > Subject: [DynoMotion] Re: Encoder Problem Returned
> > > >
> > > >
> > > > ÃâÃÂ
> > > >
> > > > Photo of board wired (out of mill for photo), and PDF of wire connections in files "Tree 320 3 axis Mill".
> > > >
> > > > http://tech.groups.yahoo.com/group/DynoMotion/files/Tree%20320%203-Axis%20Mill/
> > > >
> > > > --- In DynoMotion@yahoogroups.com, "funncarsmi" <funncars@> wrote:
> > > > >
> > > > > They are 500 pulse per rev quadrature encoders giving 2000 pulses per rev. 5V power. Connected to JP1
> > > > > X axis:
> > > > > pin 1 =A+
> > > > > pin 2 =A-
> > > > > pin 3 =B+
> > > > > pin 4 =B-
> > > > >
> > > > > Y axis:
> > > > > pin 5 =A+
> > > > > pin 6 =A-
> > > > > pin 7 =B+
> > > > > pin 8 =B-
> > > > >
> > > > > Z axis:
> > > > > pin 9 =A+
> > > > > pin 10 =A-
> > > > > pin 11 =B+
> > > > > pin 12 =B-
> > > > >
> > > > > 4th axis:
> > > > > pin 13 =A+
> > > > > pin 14 =A-
> > > > > pin 15 =B+
> > > > > pin 16 =B-
> > > > >
> > > > > The wires have been rung out by different people to confirm no mistake. Any encoder connected to JP1 #5-8 and/or #13=16 work.
> > > > > Any encoder connected to #1-4 or #9-12 do not work. The problem stays with the JP1 pins, not with the encoders.
> > > > >
> > > > > -Gregg
> > > > >
> > > > >
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Gregg,
> > > > > >
> > > > > > A common mistake is to connect single ended encoders to Kanalog's differential inputs (leaving some inputs floating) and expect it to work properly.
> > > > > >
> > > > > > Are you doing this?ÃÆ'ââ¬Å¡ÃâàWhat kind of encoders do you have?ÃÆ'ââ¬Å¡ÃâàPlease include specifications.ÃÆ'ââ¬Å¡ÃâàHow is it wired exactly?ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > > Regards,
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: funncarsmi <funncars@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Wednesday, March 6, 2013 9:21 PM
> > > > > > Subject: [DynoMotion] Encoder Problem Returned
> > > > > >
> > > > > >
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Encoder input 0 and 2 do not count properly, while 1 and 3 work normally. I have my system set up so I can quickly move all my connections from my old electronics to my dynomotion electronics. This allows me to connect my X axis encoder to the wire connections to X, Y, Z, or 4th axis. When I rotate the X axis one complete turn I get 2000 counts if I am connected to Encoder 1 or 3, but I get unrepeatable garbage if I connect to Encoder 0 or 2.
> > > > > >
> > > > > > This same scenario happens when I connect the y or Z axis encoder. 0 and 2 don't work, and 1 and 3 work perfectly. We have checked and double checked the wire connections. All 4 encoder connections are confirmed to be wired exactly alike from the quick disconnects to the kanalog board. If I connect an encoder into 0 or 2 at the same time as an encoder is connected to 1 or 3 ....1 (or 3) will stop working properly!
> > > > > >
> > > > > > Is there a software explaination regarding why these two encoder locations would not work? If not, I would like to send the boards back to you to check them?. All the other connections on the board seem to work perfectly, just encoder 0 and 2 don't count properly.
> > > > > >
> > > > > > Gregg
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
| | | | | | | | | |